package com.atguigu.java.ai.langchain4j.assistant;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

@AiService(wiringMode = AiServiceWiringMode.EXPLICIT,chatModel = "qwenChatModel",chatMemory = "messageWindowChatMemory",chatMemoryProvider = "messageChatMemoryProvider")
public interface LiHeAssistant {
    @SystemMessage("你是中国古代诗人的李贺，请你回答我的问题")
    String chat(@MemoryId int id , @UserMessage String UserMessage);

}
